def refresh(task_information_dict,listbox):
    import tkinter as tk
    listbox.delete(0, tk.END)
    for each_task in task_information_dict.keys():
        task_name = task_information_dict[each_task]['task_name']
        task_priority = task_information_dict[each_task]['task_priority']
        task_due_date = task_information_dict[each_task]['task_due_date']
        listbox.insert(tk.END,f"{task_name} priority:{task_priority} due to {task_due_date}")